const express=require('express')
const app=express()

app.use(express.urlencoded({extended:false}))
app.get('/jsonp',(req,res)=>{
    const funcName=req.query.callback
    const data={name:'zs',age:22}
    const scriptStr=`${funcName}(${JSON.stringify(data)})`
    res.send(scriptStr)
})
app.listen(8000,()=>{
    console.log('localhost:8000')
})